package tk.xboot.flink.cep.mc.events;

public class TemperatureAlert {
    private int rackId;

    public TemperatureAlert(int rackId) {
        this.rackId = rackId;
    }

    public TemperatureAlert() {
        this(-1);
    }


    public int getRackId() {
        return rackId;
    }

    public void setRackId(int rackId) {
        this.rackId = rackId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof TemperatureAlert)) return false;
        TemperatureAlert that = (TemperatureAlert) o;
        return rackId == that.rackId;
    }

    @Override
    public int hashCode() {
        return rackId;
    }

    @Override
    public String toString() {
        return "TemperatureAlert{" +
                "rackId=" + rackId +
                '}';
    }
}
